package com.zrrd.zuo.class01;

/**
 * @author ywb
 * @Description:
 * @date 2023/3/7 15:50
 */
public class SoutNum {
    public static void print(int num){
        for (int i = 31; i >= 0 ; i--) {
            System.out.printf((num & (1 << i)) == 0 ? "0" : "1");
        }
        System.out.println(" ");
    }

    public static void main(String[] args) {
        int num = 5;
        print(num);
    }
}

